package SA.student.notice;

import SA.student.MainActivity;
import SA.student.R;
import SA.student.question.questionActivity1;
import SA.student.shuttle.shuttleActivity1;
import SA.student.student.studentActivity1;
import android.app.Activity;
import android.content.*;
import android.os.Bundle;
import android.view.*;
import android.view.View.*;
import android.widget.*;

public class noticeActivity1 extends Activity {
	/** Called when the activity is first created. */
	String id;
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.notice1);

		Intent intent = getIntent();
		id = intent.getStringExtra("ID");
		
		ImageView mainBtn = (ImageView) findViewById(R.id.mainBtn);

		mainBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				mainActivity();
			}

		});
		
		
		ImageView studentBtn = (ImageView) findViewById(R.id.studentBtn);

		studentBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				studentActivity();
			}

		});

		ImageView questionBtn = (ImageView) findViewById(R.id.questionBtn);

		questionBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				questionActivity();
			}

		});

		ImageView shuttleBtn = (ImageView) findViewById(R.id.shuttleBtn);

		shuttleBtn.setOnClickListener(new OnClickListener() {

			public void onClick(View v) {
				// TODO Auto-generated method stub
				shuttleActivity();
			}

		});

	}

	void mainActivity() {
		Intent intent = new Intent(this, MainActivity.class);
		intent.putExtra("ID", id);
		startActivity(intent);
	}
	void studentActivity() {
		Intent intent = new Intent(this, studentActivity1.class);
		intent.putExtra("ID", id);
		startActivity(intent);
	}

	void questionActivity() {
		Intent intent = new Intent(this, questionActivity1.class);
		intent.putExtra("ID", id);
		startActivity(intent);
	}

	void shuttleActivity() {
		Intent intent = new Intent(this, shuttleActivity1.class);
		intent.putExtra("ID", id);
		startActivity(intent);
	}
}

